#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
/*
#include <QSqlDatabase>
#include <QtSql>
  */
#include <QString>
#include <QStringList>
#include <QMap>
#include <QtCore>
#include <QtGui>
namespace Ui {
    class MainWindow;
}
QString int2str(int i);
int callback(void *NotUsed, int argc, char **argv, char **azColName);

class MainWindow : public QMainWindow {
    Q_OBJECT
public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void loadsql();
    QMap<QString,QStringList> Standard_key;

    QString GetCode(QString str);

protected:
    void changeEvent(QEvent *e);

private:
    Ui::MainWindow *ui;

private slots:
    void on_action_XDD_triggered();
    void on_action_2_triggered();
    void on_action_triggered();
    void on_lineEdit_textChanged(QString );
};

#endif // MAINWINDOW_H
